package cn.zfz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.Map;

/**
 * <p>启动类</p>
 *
 * @author 波波老师(微信 ： javabobo0513)
 */
@SpringBootApplication
@MapperScan("cn.zfz.mapper")
@RestController
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class);
    }

    //测试接口
    @GetMapping("/hello")
    public String hello(){
        String msg = "HelloWorld!" + new Date();
        System.out.println(msg);
        return msg;
    }
}